package 编程题;
import java.io.IOException;
import java.util.Properties;

public class _2t_1 {
    public static void main(String[] args) {
        Properties properties = new Properties();
        try {
            properties.load(_2t_1.class.getClassLoader().getResourceAsStream("students.properties"));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        String name = properties.getProperty("name");
        int age = Integer.parseInt(properties.getProperty("age"));
        _2t student = new _2t(name, age);
    }
}
//序列化流不会